import tkinter from tkinter import * window = tkinter.Tk() count = 0 def buttonClickedCountUp(): global count count = count + 1 v.set(count) #label.set(count) def buttonClickedCountDown(): global count count = count - 1 v.set(count) def buttonClickedReset(): global count count = 0 v.set(count) #messagebox.showinfo("title","body") button = tkinter.Button(window, text="Up", command = buttonClickedCountUp) button.pack() button2 = tkinter.Button(window, text="Down", command = buttonClickedCountDown) button2.pack() button3 = tkinter.Button(window, text="Reset", command = buttonClickedReset).pack() v = StringVar() label = tkinter.Label(window,textvariable=v).pack() v.set(count) window.mainloop()